/*
 * TypeName.h
 *
 *  Created on: 2018年7月6日
 *      Author: zhengboyuan
 */

#ifndef TYPENAME_H_
#define TYPENAME_H_

#include "BasicType.h"

namespace util
{


struct TypeName
{
    int type;
    const char* name;
};

const char* toName(TypeName* names, size_t count, int value, bool* found);

int toType(TypeName* names, size_t count, const char* name, size_t len, int defValue);

bool parseType(TypeName* names, size_t count, const char* name, size_t len, int& value);


}


#endif /* TYPENAME_H_ */
